


class Student:
    def __init__(self, name):
        self.name = name
        print(id(self))

    def set_math(self, score):
        self.math = score

    def get_math(self):
        print(f'{self.name}的数学成绩是{self.math}')





s = Student('zhangsan')
s.set_math(98)
print(s.math)
s.get_math()
# s1 = Student('lisi')
# print(s.name)
# print('外面', id(s))
# print('lisi', id(s1))





